/*
 * @Author: wuqingchun
 * @Date: 2024-04-22 18:45:22
 * @Description: 继承类实现
 * @LastEditors: wuqingchun
 * @LastEditTime: 2024-04-22 20:27:21
 */
#ifndef __CLASS_DERIVED_H__
#define __CLASS_DERIVED_H__

#include "class_base.h"

// 默认私有继承(private)
class ClassDerivedPrivate : ClassBase
{
public:
    ClassDerivedPrivate();
    ~ClassDerivedPrivate();

    virtual void ShowInfo() const override;
};

// 保护继承
class ClassDerivedProtected : protected ClassBase
{
public:
    ClassDerivedProtected();
    ~ClassDerivedProtected();

    virtual void ShowInfo() const override;
};


// 公开继承
class ClassDerivedPublic : public ClassBase
{
public:
    ClassDerivedPublic();
    ~ClassDerivedPublic();

    virtual void ShowInfo() const override;
};

#endif //__CLASS_DERIVED_H__